<?php

declare (strict_types = 1);

namespace app\adminapi\validate;

use think\Validate;

class IpBlacklistValidate extends Validate
{
    protected $rule = [
        'ip'  => 'require|unique:ip_blacklist',
    ];

    protected $message = [
        'ip.require' => '请填写IP',
        'ip.unique' => 'IP已存在',
    ];
}